home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / COLORCON.C < prev    next >
Text File  |  1992-11-21  |  2KB  |  53 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef color_content
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_colorcon = "$Header: c:/curses/portable/RCS/colorcon.c%v 2.0 1992/11/15 03:28:48 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   color_content()      - Obtain color content information.
  15.  
  16.   PDCurses Description:
  17.  
  18.        This routine obtains the current color-content information of a given
  19.        color.
  20.        The routine uses four arguments: the color number, which must
  21.        be a value between 0 and COLORS-1, and the addresses of three
  22.        short integers for storing the obtained information of the color
  23.        components red, green and blue. The function stores the current
  24.        values at these adresses passed.
  25.  
  26.        ***** This function doesn't do anything yet *****
  27.  
  28.   PDCurses Return Value:
  29.        This function returns ERR if the color is out of range otherwise
  30.        it returns OK.
  31.  
  32.   PDCurses Errors:
  33.        N/A
  34.  
  35.   Portability:
  36.        PDCurses        int color_content( int color, short *red, short *green, short *blue);
  37.        SYS V curses    int color_content( int color, short *red, short *green, short *blue);
  38.  
  39. **man-end**********************************************************************/
  40.  
  41.  
  42. int color_content(int color, short *red, short *green, short *blue)
  43. {
  44.  extern int COLORS;
  45.  
  46.  if (color >= COLORS -1 || color < 1)
  47.     return(ERR);
  48. /*
  49.  * This function doesn't do anything yet...
  50.  */
  51.  return(ERR);
  52. }
  53.